<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Editar Curso</h2>

            <p:panel styleClass="container_24 clearfix " style="background: none; border: none;"> 
                <h:form id="form" acceptcharset="utf-8">
                    <p:growl id="msg" life="3000" autoUpdate="true" showDetail="false"/>

                    <p class="subtitle"> Dados Gerais</p>

                    <p:outputLabel value="Código:" styleClass="grid_3" for="codigoInputText"/>
                    <p:inputText id="codigoInputText" styleClass="grid_7"
                                 required="true" value="#{managerPesquisarCurso.cursoEditar.codigo}"/>
                    <div class="clear"/>

                    <p:outputLabel value="Nome:" styleClass="grid_3" for="nomeInputText"/>
                    <p:inputText id="nomeInputText" styleClass="grid_20"
                                 required="true" value="#{managerPesquisarCurso.cursoEditar.nome}" />

                    <div class="clear"/>
                    <div class="buttonAction">
                        <p:commandButton value="Atualizar" icon="ui-icon-disk" 
                                         actionListener="#{managerPesquisarCurso.atualizar()}" 
                                         update="@form" styleClass="ui-priority-primary"/>
                        <p:button value="Cancelar" icon="ui-icon-circle-close"
                                  href="pesquisarcurso.xhtml"/>

                    </div>
                </h:form>
            </p:panel> 
        </ui:define>
    </ui:composition>
</html>